package com.java.grammer.equal.exer1;


/**
 * @author luzhikun
 * @date 2020/12/7- 17:16
 */
public class CircleTest {
    public static void main(String[] args) {
        Circle circle = new Circle("白色", 3, 3);
        Circle circle1 = new Circle(new String("白色"), 3, 3);
        System.out.println(circle.equals(circle1));
        System.out.println(circle.toString());
        System.out.println("两个圆的颜色是否相等  " + circle.getColor().equals(circle1.getColor()));
    }

}
